package com.cskaoyan.user.controller.zyl_Conteroller;

import com.cskaoyan.mall.commons.result.ResponseData;
import com.cskaoyan.user.form.UserVerifyRequest;
import com.cskaoyan.user.service.IUserRegisterService;
import com.cskaoyan.user.service.impl.zyl_impl.zyl_IUserRegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class zyl_loginOut_and_verify {

    @Autowired
    zyl_IUserRegisterService iUserRegisterService;

    /**
     * 用户注册激活
     */
    @GetMapping("/user/verify")
    public ResponseData verify(Zyl_verify zyl_verify) {
        String username = zyl_verify.getUsername();
        String uid = zyl_verify.getUid();
        UserVerifyRequest request = new UserVerifyRequest();
        request.setUsername(username);
        request.setUuid(uid);
        return iUserRegisterService.verify(request);
    }

}
